<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2006-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OpenMP 5.0 (GNU libgomp)</title>

<meta name="description" content="OpenMP 5.0 (GNU libgomp)">
<meta name="keywords" content="OpenMP 5.0 (GNU libgomp)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="Library-Index.html" rel="index" title="Library Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="OpenMP-Implementation-Status.html" rel="up" title="OpenMP Implementation Status">
<link href="OpenMP-5_002e1.html" rel="next" title="OpenMP 5.1">
<link href="OpenMP-4_002e5.html" rel="prev" title="OpenMP 4.5">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<span id="OpenMP-5_002e0"></span><div class="header">
<p>
Next: <a href="OpenMP-5_002e1.html" accesskey="n" rel="next">OpenMP 5.1</a>, Previous: <a href="OpenMP-4_002e5.html" accesskey="p" rel="prev">OpenMP 4.5</a>, Up: <a href="OpenMP-Implementation-Status.html" accesskey="u" rel="up">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<span id="OpenMP-5_002e0-1"></span><h3 class="section">2.2 OpenMP 5.0</h3>

<span id="New-features-listed-in-Appendix-B-of-the-OpenMP-specification"></span><h4 class="unnumberedsubsec">New features listed in Appendix B of the OpenMP specification</h4>

<table>
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tr><td width="60%">Array shaping</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Array sections with non-unit strides in C and C++</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Iterators</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>metadirective</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code>declare variant</code> directive</td><td width="10%">P</td><td width="25%"><em>simd</em> traits not handled correctly</td></tr>
<tr><td width="60%"><em>target-offload-var</em> ICV and <code>OMP_TARGET_OFFLOAD</code>
      env variable</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Nested-parallel changes to <em>max-active-levels-var</em> ICV</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>requires</code> directive</td><td width="10%">P</td><td width="25%">complete but no non-host devices provides <code>unified_address</code> or
      <code>unified_shared_memory</code></td></tr>
<tr><td width="60%"><code>teams</code> construct outside an enclosing target region</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Non-rectangular loop nests</td><td width="10%">P</td><td width="25%">Full support for C/C++, partial for Fortran</td></tr>
<tr><td width="60%"><code>!=</code> as relational-op in canonical loop form for C/C++</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>nonmonotonic</code> as default loop schedule modifier for worksharing-loop
      constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Collapse of associated loops that are imperfectly nested loops</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Clauses <code>if</code>, <code>nontemporal</code> and <code>order(concurrent)</code> in
      <code>simd</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>atomic</code> constructs in <code>simd</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>loop</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>order(concurrent)</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>scan</code> directive and <code>in_scan</code> modifier for the
      <code>reduction</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>in_reduction</code> clause on <code>task</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>in_reduction</code> clause on <code>target</code> constructs</td><td width="10%">P</td><td width="25%"><code>nowait</code> only stub</td></tr>
<tr><td width="60%"><code>task_reduction</code> clause with <code>taskgroup</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>task</code> modifier to <code>reduction</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>affinity</code> clause to <code>task</code> construct</td><td width="10%">Y</td><td width="25%">Stub only</td></tr>
<tr><td width="60%"><code>detach</code> clause to <code>task</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>omp_fulfill_event</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>reduction</code> and <code>in_reduction</code> clauses on <code>taskloop</code>
      and <code>taskloop simd</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>taskloop</code> construct cancelable by <code>cancel</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>mutexinoutset</code> <em>dependence-type</em> for <code>depend</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Predefined memory spaces, memory allocators, allocator traits</td><td width="10%">Y</td><td width="25%">Some are only stubs</td></tr>
<tr><td width="60%">Memory management routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>allocate</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code>allocate</code> clause</td><td width="10%">P</td><td width="25%">Initial support</td></tr>
<tr><td width="60%"><code>use_device_addr</code> clause on <code>target data</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>ancestor</code> modifier on <code>device</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Implicit declare target directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Discontiguous array section with <code>target update</code> construct</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">C/C++&rsquo;s lvalue expressions in <code>to</code>, <code>from</code>
      and <code>map</code> clauses</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">C/C++&rsquo;s lvalue expressions in <code>depend</code> clauses</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Nested <code>declare target</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Combined <code>master</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>depend</code> clause on <code>taskwait</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Weak memory ordering clauses on <code>atomic</code> and <code>flush</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>hint</code> clause on the <code>atomic</code> construct</td><td width="10%">Y</td><td width="25%">Stub only</td></tr>
<tr><td width="60%"><code>depobj</code> construct and depend objects</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Lock hints were renamed to synchronization hints</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>conditional</code> modifier to <code>lastprivate</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Map-order clarifications</td><td width="10%">P</td><td width="25%"></td></tr>
<tr><td width="60%"><code>close</code> <em>map-type-modifier</em></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Mapping C/C++ pointer variables and to assign the address of
      device memory mapped by an array section</td><td width="10%">P</td><td width="25%"></td></tr>
<tr><td width="60%">Mapping of Fortran pointer and allocatable variables, including pointer
      and allocatable components of variables</td><td width="10%">P</td><td width="25%">Mapping of vars with allocatable components unsupported</td></tr>
<tr><td width="60%"><code>defaultmap</code> extensions</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>declare mapper</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code>omp_get_supported_active_levels</code> routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Runtime routines and environment variables to display runtime thread
      affinity information</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>omp_pause_resource</code> and <code>omp_pause_resource_all</code> runtime
      routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code>omp_get_device_num</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">OMPT interface</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">OMPD interface</td><td width="10%">N</td><td width="25%"></td></tr>
</table>

<span id="Other-new-OpenMP-5_002e0-features"></span><h4 class="unnumberedsubsec">Other new OpenMP 5.0 features</h4>

<table>
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tr><td width="60%">Supporting C++&rsquo;s range-based for loop</td><td width="10%">Y</td><td width="25%"></td></tr>
</table>


<hr>
<div class="header">
<p>
Next: <a href="OpenMP-5_002e1.html" accesskey="n" rel="next">OpenMP 5.1</a>, Previous: <a href="OpenMP-4_002e5.html" accesskey="p" rel="prev">OpenMP 4.5</a>, Up: <a href="OpenMP-Implementation-Status.html" accesskey="u" rel="up">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
